package com.workManager.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class TbProjectTasktimeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TbProjectTasktimeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andTasktimeIdIsNull() {
            addCriterion("TASKTIME_ID is null");
            return (Criteria) this;
        }

        public Criteria andTasktimeIdIsNotNull() {
            addCriterion("TASKTIME_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTasktimeIdEqualTo(Integer value) {
            addCriterion("TASKTIME_ID =", value, "tasktimeId");
            return (Criteria) this;
        }

        public Criteria andTasktimeIdNotEqualTo(Integer value) {
            addCriterion("TASKTIME_ID <>", value, "tasktimeId");
            return (Criteria) this;
        }

        public Criteria andTasktimeIdGreaterThan(Integer value) {
            addCriterion("TASKTIME_ID >", value, "tasktimeId");
            return (Criteria) this;
        }

        public Criteria andTasktimeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("TASKTIME_ID >=", value, "tasktimeId");
            return (Criteria) this;
        }

        public Criteria andTasktimeIdLessThan(Integer value) {
            addCriterion("TASKTIME_ID <", value, "tasktimeId");
            return (Criteria) this;
        }

        public Criteria andTasktimeIdLessThanOrEqualTo(Integer value) {
            addCriterion("TASKTIME_ID <=", value, "tasktimeId");
            return (Criteria) this;
        }

        public Criteria andTasktimeIdIn(List<Integer> values) {
            addCriterion("TASKTIME_ID in", values, "tasktimeId");
            return (Criteria) this;
        }

        public Criteria andTasktimeIdNotIn(List<Integer> values) {
            addCriterion("TASKTIME_ID not in", values, "tasktimeId");
            return (Criteria) this;
        }

        public Criteria andTasktimeIdBetween(Integer value1, Integer value2) {
            addCriterion("TASKTIME_ID between", value1, value2, "tasktimeId");
            return (Criteria) this;
        }

        public Criteria andTasktimeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("TASKTIME_ID not between", value1, value2, "tasktimeId");
            return (Criteria) this;
        }

        public Criteria andTasktimeIsNull() {
            addCriterion("TASKTIME is null");
            return (Criteria) this;
        }

        public Criteria andTasktimeIsNotNull() {
            addCriterion("TASKTIME is not null");
            return (Criteria) this;
        }

        public Criteria andTasktimeEqualTo(BigDecimal value) {
            addCriterion("TASKTIME =", value, "tasktime");
            return (Criteria) this;
        }

        public Criteria andTasktimeNotEqualTo(BigDecimal value) {
            addCriterion("TASKTIME <>", value, "tasktime");
            return (Criteria) this;
        }

        public Criteria andTasktimeGreaterThan(BigDecimal value) {
            addCriterion("TASKTIME >", value, "tasktime");
            return (Criteria) this;
        }

        public Criteria andTasktimeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("TASKTIME >=", value, "tasktime");
            return (Criteria) this;
        }

        public Criteria andTasktimeLessThan(BigDecimal value) {
            addCriterion("TASKTIME <", value, "tasktime");
            return (Criteria) this;
        }

        public Criteria andTasktimeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("TASKTIME <=", value, "tasktime");
            return (Criteria) this;
        }

        public Criteria andTasktimeIn(List<BigDecimal> values) {
            addCriterion("TASKTIME in", values, "tasktime");
            return (Criteria) this;
        }

        public Criteria andTasktimeNotIn(List<BigDecimal> values) {
            addCriterion("TASKTIME not in", values, "tasktime");
            return (Criteria) this;
        }

        public Criteria andTasktimeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("TASKTIME between", value1, value2, "tasktime");
            return (Criteria) this;
        }

        public Criteria andTasktimeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("TASKTIME not between", value1, value2, "tasktime");
            return (Criteria) this;
        }

        public Criteria andTasktimeDateIsNull() {
            addCriterion("TASKTIME_DATE is null");
            return (Criteria) this;
        }

        public Criteria andTasktimeDateIsNotNull() {
            addCriterion("TASKTIME_DATE is not null");
            return (Criteria) this;
        }

        public Criteria andTasktimeDateEqualTo(Date value) {
            addCriterionForJDBCDate("TASKTIME_DATE =", value, "tasktimeDate");
            return (Criteria) this;
        }

        public Criteria andTasktimeDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("TASKTIME_DATE <>", value, "tasktimeDate");
            return (Criteria) this;
        }

        public Criteria andTasktimeDateGreaterThan(Date value) {
            addCriterionForJDBCDate("TASKTIME_DATE >", value, "tasktimeDate");
            return (Criteria) this;
        }

        public Criteria andTasktimeDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("TASKTIME_DATE >=", value, "tasktimeDate");
            return (Criteria) this;
        }

        public Criteria andTasktimeDateLessThan(Date value) {
            addCriterionForJDBCDate("TASKTIME_DATE <", value, "tasktimeDate");
            return (Criteria) this;
        }

        public Criteria andTasktimeDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("TASKTIME_DATE <=", value, "tasktimeDate");
            return (Criteria) this;
        }

        public Criteria andTasktimeDateIn(List<Date> values) {
            addCriterionForJDBCDate("TASKTIME_DATE in", values, "tasktimeDate");
            return (Criteria) this;
        }

        public Criteria andTasktimeDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("TASKTIME_DATE not in", values, "tasktimeDate");
            return (Criteria) this;
        }

        public Criteria andTasktimeDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("TASKTIME_DATE between", value1, value2, "tasktimeDate");
            return (Criteria) this;
        }

        public Criteria andTasktimeDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("TASKTIME_DATE not between", value1, value2, "tasktimeDate");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNull() {
            addCriterion("PROJECT_ID is null");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNotNull() {
            addCriterion("PROJECT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andProjectIdEqualTo(Integer value) {
            addCriterion("PROJECT_ID =", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotEqualTo(Integer value) {
            addCriterion("PROJECT_ID <>", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThan(Integer value) {
            addCriterion("PROJECT_ID >", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("PROJECT_ID >=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThan(Integer value) {
            addCriterion("PROJECT_ID <", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanOrEqualTo(Integer value) {
            addCriterion("PROJECT_ID <=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIn(List<Integer> values) {
            addCriterion("PROJECT_ID in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotIn(List<Integer> values) {
            addCriterion("PROJECT_ID not in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdBetween(Integer value1, Integer value2) {
            addCriterion("PROJECT_ID between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotBetween(Integer value1, Integer value2) {
            addCriterion("PROJECT_ID not between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("USER_ID is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("USER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("USER_ID =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("USER_ID <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("USER_ID >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("USER_ID >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("USER_ID <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("USER_ID <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("USER_ID in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("USER_ID not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("USER_ID between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("USER_ID not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andTasktimeTypeIsNull() {
            addCriterion("TASKTIME_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andTasktimeTypeIsNotNull() {
            addCriterion("TASKTIME_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andTasktimeTypeEqualTo(Integer value) {
            addCriterion("TASKTIME_TYPE =", value, "tasktimeType");
            return (Criteria) this;
        }

        public Criteria andTasktimeTypeNotEqualTo(Integer value) {
            addCriterion("TASKTIME_TYPE <>", value, "tasktimeType");
            return (Criteria) this;
        }

        public Criteria andTasktimeTypeGreaterThan(Integer value) {
            addCriterion("TASKTIME_TYPE >", value, "tasktimeType");
            return (Criteria) this;
        }

        public Criteria andTasktimeTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("TASKTIME_TYPE >=", value, "tasktimeType");
            return (Criteria) this;
        }

        public Criteria andTasktimeTypeLessThan(Integer value) {
            addCriterion("TASKTIME_TYPE <", value, "tasktimeType");
            return (Criteria) this;
        }

        public Criteria andTasktimeTypeLessThanOrEqualTo(Integer value) {
            addCriterion("TASKTIME_TYPE <=", value, "tasktimeType");
            return (Criteria) this;
        }

        public Criteria andTasktimeTypeIn(List<Integer> values) {
            addCriterion("TASKTIME_TYPE in", values, "tasktimeType");
            return (Criteria) this;
        }

        public Criteria andTasktimeTypeNotIn(List<Integer> values) {
            addCriterion("TASKTIME_TYPE not in", values, "tasktimeType");
            return (Criteria) this;
        }

        public Criteria andTasktimeTypeBetween(Integer value1, Integer value2) {
            addCriterion("TASKTIME_TYPE between", value1, value2, "tasktimeType");
            return (Criteria) this;
        }

        public Criteria andTasktimeTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("TASKTIME_TYPE not between", value1, value2, "tasktimeType");
            return (Criteria) this;
        }

        public Criteria andTasktimePurposeIsNull() {
            addCriterion("TASKTIME_PURPOSE is null");
            return (Criteria) this;
        }

        public Criteria andTasktimePurposeIsNotNull() {
            addCriterion("TASKTIME_PURPOSE is not null");
            return (Criteria) this;
        }

        public Criteria andTasktimePurposeEqualTo(String value) {
            addCriterion("TASKTIME_PURPOSE =", value, "tasktimePurpose");
            return (Criteria) this;
        }

        public Criteria andTasktimePurposeNotEqualTo(String value) {
            addCriterion("TASKTIME_PURPOSE <>", value, "tasktimePurpose");
            return (Criteria) this;
        }

        public Criteria andTasktimePurposeGreaterThan(String value) {
            addCriterion("TASKTIME_PURPOSE >", value, "tasktimePurpose");
            return (Criteria) this;
        }

        public Criteria andTasktimePurposeGreaterThanOrEqualTo(String value) {
            addCriterion("TASKTIME_PURPOSE >=", value, "tasktimePurpose");
            return (Criteria) this;
        }

        public Criteria andTasktimePurposeLessThan(String value) {
            addCriterion("TASKTIME_PURPOSE <", value, "tasktimePurpose");
            return (Criteria) this;
        }

        public Criteria andTasktimePurposeLessThanOrEqualTo(String value) {
            addCriterion("TASKTIME_PURPOSE <=", value, "tasktimePurpose");
            return (Criteria) this;
        }

        public Criteria andTasktimePurposeLike(String value) {
            addCriterion("TASKTIME_PURPOSE like", value, "tasktimePurpose");
            return (Criteria) this;
        }

        public Criteria andTasktimePurposeNotLike(String value) {
            addCriterion("TASKTIME_PURPOSE not like", value, "tasktimePurpose");
            return (Criteria) this;
        }

        public Criteria andTasktimePurposeIn(List<String> values) {
            addCriterion("TASKTIME_PURPOSE in", values, "tasktimePurpose");
            return (Criteria) this;
        }

        public Criteria andTasktimePurposeNotIn(List<String> values) {
            addCriterion("TASKTIME_PURPOSE not in", values, "tasktimePurpose");
            return (Criteria) this;
        }

        public Criteria andTasktimePurposeBetween(String value1, String value2) {
            addCriterion("TASKTIME_PURPOSE between", value1, value2, "tasktimePurpose");
            return (Criteria) this;
        }

        public Criteria andTasktimePurposeNotBetween(String value1, String value2) {
            addCriterion("TASKTIME_PURPOSE not between", value1, value2, "tasktimePurpose");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("CREATE_DATE is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("CREATE_DATE is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_DATE =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_DATE <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterionForJDBCDate("CREATE_DATE >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_DATE >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterionForJDBCDate("CREATE_DATE <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_DATE <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterionForJDBCDate("CREATE_DATE in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("CREATE_DATE not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("CREATE_DATE between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("CREATE_DATE not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andIsValidIsNull() {
            addCriterion("IS_VALID is null");
            return (Criteria) this;
        }

        public Criteria andIsValidIsNotNull() {
            addCriterion("IS_VALID is not null");
            return (Criteria) this;
        }

        public Criteria andIsValidEqualTo(Boolean value) {
            addCriterion("IS_VALID =", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidNotEqualTo(Boolean value) {
            addCriterion("IS_VALID <>", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidGreaterThan(Boolean value) {
            addCriterion("IS_VALID >", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidGreaterThanOrEqualTo(Boolean value) {
            addCriterion("IS_VALID >=", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidLessThan(Boolean value) {
            addCriterion("IS_VALID <", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidLessThanOrEqualTo(Boolean value) {
            addCriterion("IS_VALID <=", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidIn(List<Boolean> values) {
            addCriterion("IS_VALID in", values, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidNotIn(List<Boolean> values) {
            addCriterion("IS_VALID not in", values, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidBetween(Boolean value1, Boolean value2) {
            addCriterion("IS_VALID between", value1, value2, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidNotBetween(Boolean value1, Boolean value2) {
            addCriterion("IS_VALID not between", value1, value2, "isValid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}